<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>店铺信息</title>
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=714bfaae513a5d1e4d79e49a6bde248d&callback=init"></script>
<!--    <script type="text/javascript" src="https://cache.amap.com/lbs/static/addToolbar.js"></script>&lt;!&ndash;    <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=68db85747b6e60c9a60fd82955f2fd12&plugin="></script>&ndash;&gt;-->
<!--    <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=68db85747b6e60c9a60fd82955f2fd12&plugin="></script>-->
<!--    <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=68db85747b6e60c9a60fd82955f2fd12&plugin="></script>-->
    <script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
    <link rel="stylesheet" th:href="@{/css/resultPanel.css}">
    <link rel="stylesheet" th:href="@{/css/shopInfo.css}">
    <script src="//webapi.amap.com/ui/1.1/main-async.js"></script>
    <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/shopInfo.js}"></script>
    <script type="text/javascript" th:src="@{/js/formVerify.js}"></script>

</head>
<body>
<div class="shop-info-form layui-form">
<form  class="layui-form layui-form-pane" style="margin-left: 25%"  autocomplete="off"><div class="layui-fluid">
    <div class="layui-form-item" >
        <div class="layui-inline">
                <label class="layui-form-label">店铺名:</label>
            <div class="layui-inline">
                <input id="shopName"  type="text" name="shopName" autocomplete="off" lay-verify="required" value="" th:value="${shop.getName()}"  class="layui-input-block" >
            </div>
        </div>
    </div>
    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">法人:</label>
            <div class="layui-inline">
                <input type="text" name="username" placeholder="" lay-verify="required" th:value="${admin.getUsername()}"  class="layui-input-block">
            </div>
        </div>
    </div>
    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">店铺地址:</label>
            <div class="layui-inline">
                <input type="text"  name="shopAddress" th:value="${shop.address}" placeholder="" lay-verify="required" autocomplete="off" class="layui-input-block">
            </div>
            <button type="button" id="chooseAddress" class="layui-btn layui-btn-normal" lay-filter="chooseAddress">选择地址</button>
        </div>

    </div>


    <!--图片上传-->
    <div class="layui-form-item" >
        <div class="layui-inline">
            <div class="layui-upload">
                <label class="layui-form-label">营业执照:</label>
                <button type="button" class="layui-btn" id="uploadLicense">上传图片</button>
                <div class="layui-upload-list" style="border: solid 1px black">
                    <input id="licenseUrl" type="hidden">
                    <img class="layui-upload-img" id="img-show">
                    <p id="demoText"></p>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">社会信用代码:</label>
            <div class="layui-inline">
                <input type="text"  name="credit"  placeholder="" lay-verify="required|code" class="layui-input-block">
            </div>
        </div>
    </div>
    <div class="layui-form-item" >
        <div class="layui-inline">
            <label class="layui-form-label">注册时间:</label>
            <div class="layui-inline">
                <input type="text"  id="creatTime" name="creatTime" lay-verify="required" placeholder="" disabled="disabled" th:value="${#dates.format(shop.getCreateTime(),'yyyy-MM-dd')}" class="layui-input-block">
            </div>
        </div><br>
        <div class="layui-inline" style="margin-left: 25%">
            <button id="updateBtn" type="button" action="javascript:void(0)" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="updateBtn">确认修改</button>
        </div>
    </div>
    <input name="shopId" type="hidden" th:value="${shop.getId()}"/>
    <input name="adminId" type="hidden" th:value="${shop.getaId()}"/>
    <input type="hidden" id="latitude">
    <input type="hidden" id="longitude">
    </div>
</form>
</div>
<div id="selectAddressModel">
    <div class="info" >
        <div class="input-item">
            <div class="input-item-prepend">
                <span class="input-item-text" style="width:8rem;">请输入关键字</span>
            </div>
            <input id='tipInput' type="text" autocomplete="off">
        </div>
        <div class="c">地址：</div>
        <label id="dragAddress"></label>
        <div class="c">最近的路口：</div>
        <label id="nearestJunction"></label>
        <div class="c">最近的街道：</div>
        <label id="nearestRoad"></label>
        <br>
        <button id="addressAccess" class="layui-btn layui-btn-normal" lay-filter="addressAccess">确认位置</button>
    </div>

    <div id="result"></div>
    <div id="container" tabindex="0"></div>
</div>




</body>


<script>

</script>
<!---->

</html>
